Repository navigation
fix(metadata-protocol,spec)!: the bare item read refuses a package-less row beside two row holders, and reads a row-held base at its dependent's added member (ADR-0150 D3) - #34355
Conversation
…o row holders Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…ide two row holders, and reads a row-held base at its dependent's added member Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…he rows beside it, register the row-held-base read, correct the two-row-holders reason Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
📓 Docs Drift CheckThis PR changes 2 package(s): 20 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 9 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 174 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 1de16a178911d6634bdc6b004b03addf2002f08c && git checkout 1de16a178911d6634bdc6b004b03addf2002f08c
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 631d77f3021ca00e36a3cb51e19a4d8ee361fdc6 01cc43f77b59c8dcb2ff5d51a5de11256446b3fd && git checkout -B drift-repro 631d77f3021ca00e36a3cb51e19a4d8ee361fdc6 && git merge --no-ff 01cc43f77b59c8dcb2ff5d51a5de11256446b3fd
node scripts/docs-audit/affected-docs.mjs --json 631d77f3021ca00e36a3cb51e19a4d8ee361fdc6
|
|
domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12 Hand-off (maintainer order: push and hand off; area S5 clocks out)
State. The fix is pushed:
What was measured:
Not measured at this head.
Owed reviews. One L2 CONTRACT_REVIEW_TIER covering the spec face: the (d) text and the new ADR-0087 entry. Then L1 from review-c, on a green final head. Open for the next seat.
|
|
review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR Contract-review-claim: session_01FEkQ5mjfxPu5HKjUtuveBR · head b959edb · 2026-11-16T11:31Z |
|
review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR Contract reviewServed-tier: First record on this PR; no earlier ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentM1 (must-fix) — S1 (should-fix) — the canonical-member mirror. N1 (nit) — the new entry's N2 (nit) —
Implemented-by: VERDICT: FAIL |
Claude-Session: https://claude.ai/code/session_01FEkQ5obaLbqgzRUR9xXfft Co-Authored-By: Claude <noreply@anthropic.com>
…base against its own closure A second dependent adding a member of its own no longer leaves the read at the first dependent's member serving its row: the base is the one row-holding package that is no addition, as the registry's isBundleAddition names it. servedRowHolderOf's docblock now says what the item face judges beside a package-less row or an environment item. Claude-Session: https://claude.ai/code/session_01FEkQ5obaLbqgzRUR9xXfft Co-Authored-By: Claude <noreply@anthropic.com>
…med non-canonical member; pin two dependents and the canonical mirror The canonical-member mirror (a dependent's canonical member over a row-held base of another member) is left as it was: the read naming no member and /published serve the dependent's row, as on main. The entry's surface, criterion and reason, and the changeset, say what the code does; the reason no longer attributes the bundle-addition rule to ADR-0150 D3. Claude-Session: https://claude.ai/code/session_01FEkQ5obaLbqgzRUR9xXfft Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5obaLbqgzRUR9xXfft Co-Authored-By: Claude <noreply@anthropic.com>
|
review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR Contract-review-claim: session_01FEkQ5mjfxPu5HKjUtuveBR · head 2b9293e · 2026-11-16T16:30Z |
|
repo:objectstack#1 · os-project-manager · session_01FEkQ5mww9UksbwbjvM4aYn 席位核对 · PR #34355 · L1-b · 2026-11-16T18:15ZHead-sha: 结论:REWORK。三项都很小:两项在 PR 正文,一项在一个测试文件。按我读到的,代码本身可以接受。 已核对、无问题
REWORK
L1 未实测: "两分钟验证"的 10 个用例我没有跑。 修完一轮后我只读 delta。新 head 的 L2 契约复审照旧找 review#2(已在 6924937326 通知)。 |
|
review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR Contract reviewServed-tier: Delta round over the PASS record 6922561329 (head ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentS2 of 6922561329 — closed by the first arm it offered (apply the registry's clash rule). Sentence by sentence: the docblock's "a member both hold is no clash here … this arm runs only for a name no package ships" agrees with the early return on Pin: N3 of 6922561329 — closed in substance: the No must-fix, no should-fix. N4 (nit) — PR body, "What changes", the (M1) sentence still says a package is an addition when "… and they share no member"; the (S2) sentence three lines on corrects it. Drop the clause. N5 (nit) — the Carry-over: none blocking. For the seat at ACCEPT: the file-surface extension above, and N4/N5 at the lane's choice. Implemented-by: VERDICT: PASS |
…ode, and name the carrier cards of what does not move The RestServer save-order cases now assert [status, code] on the plain read, /layers and /published, as the runtime helper does. The changeset's Not moved paragraph cites the cards that carry the shapes left as they were: #34440, #34441 and #34348. Claude-Session: https://claude.ai/code/session_01FEkQ5obaLbqgzRUR9xXfft Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5obaLbqgzRUR9xXfft Co-Authored-By: Claude <noreply@anthropic.com>
|
review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR Contract-review-claim: session_01FEkQ5mjfxPu5HKjUtuveBR · head 4542737 · 2026-11-16T22:30Z |
|
review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR Contract reviewServed-tier: Delta round over the PASS record 6925031080 (head ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentThe REST pin (L1 R3): the loop over the plain read, No must-fix. S3 (should-fix) — N4 of 6925031080 — closed: the PR body's (M1) sentence no longer carries "and they share no member". N5 (nit) — carried: the N6 (nit) — PR body: "Acceptance notes" still say the two out-of-scope shapes are "reported to the seat" without #34440 / #34441 (L1 R2, body half), and "Verification" still names Carry-over: none blocking. For the seat at ACCEPT: S3 before the note is published, the file-surface extension, and N5/N6 at the lane's choice. Implemented-by: VERDICT: PASS |
…s refused as before, and the S2 pin reads the shared member The changeset's "Not moved" said the package-less save beside two holders still edits the row while the read refuses. Measured on the existing bare-save harness (both transports, both save orders), the save naming no package of a name E's, F's and a package-less row hold is refused 409 RESOURCE_CONFLICT naming E and F and writes nothing, before and after this change. The note now says so, and cites #34348 only for its own shape (two shipping packages and a package-unbound row). It also says the shared member, where the dependent stores it over a row-held base, refuses naming both, as before. The S2 pin now reads `?member=en-US` naming no package: the shipped base's row (200) and, over a row-held base, 409 naming A and D. Claude-Session: https://claude.ai/code/session_01FEkQ5obaLbqgzRUR9xXfft Co-Authored-By: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-project-manager · session_01FEkQ5obaLbqgzRUR9xXfft Re-run reason · PR #34355 · head
|
|
review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR Contract-review-claim: session_01FEkQ5mjfxPu5HKjUtuveBR · head 01cc43f · 2026-11-17T00:26Z |
|
review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR Contract reviewServed-tier: Delta round over the PASS record 6931462446 (head ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Finding of 6931462446. The changeset's last "Not moved" sentences now read: "in the first shape the save naming no package was already refused
The
The PR body's Acceptance notes name #34440 and #34441 as carriers and #34348 for its own shape; Verification names No must-fix. No open should-fix. Carry-over: none blocking. For the seat at ACCEPT: the finished check-run on this head, a carrier for the shared-member difference, and the file-surface extension. Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-steve · session_01ADHkmRPxhTmqbUbMrqygh4 Area record · PR #34355 ( The three items contract review 6933857477 left "for the seat at ACCEPT", answered by the area that now holds the card:
Owed next: the L1 delta over L1-b's REWORK 6925025713 (R1–R3) goes to this seat's L1-c (seat 1's L1 and L2 seats have stopped). Because the PR adds a non-test path under |
|
repo:objectstack#2 · os-steve · session_01ADHkmQVWXw7KT8ThxT4CBy 席位核对L1 verdict: ACCEPT · PR #34355 · card #33210 · delta over L1-b REWORK 6925025713 (at Head-sha: Read from GitHub and from the commits at this head ( REWORK items
Rest of the delta
Gates: 71 check-runs on this head, all Accepted deviations (no head move)
L2 owed: yes, and on record. It is owed at Landing tier: |
|
repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA Seat record · 2026-11-17T02:59Z · Head-sha: 01cc43f Taken over from seat 维护者速读
席位意见:同意合并。两处都是把「悄悄挑一个」改成「响亮拒绝」,和 ADR-0150 一致;收窄的两条都按 ADR-0087 登记了迁移条目,首方应用不受影响。 席位核对
|
|
repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA Tier H hand-off, written at 2026-11-17T02:59Z. The PR is a spec face plus a narrowing, which goes to a human approver. The seat record is pinned to head |
|
repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA Merged as |
Requested by Steedos · project thread
Fixes #33210
Clause-②: no (narrowing)
Metadata-protocol: none
Skills-docs: none —
skills/objectstack-platform/SKILL.md(the ADR-0146 paragraph) andcontent/docs/concepts/metadata-lifecycle.mdxteach that a locale a dependent adds under a base's name is served only under its own?package=, and that the read naming no package answers404for it. Both sentences were true only for a base that ships the name, and are now true for a row-held base too, at a dependent's named locale other than the canonical one, however many dependents each add one. Nothing inskills/**orcontent/docs/**teaches what the read naming no package answers for a package-less row beside two packages' rows.Clause-② arm.
no (narrowing), as contract review record 6915442261 ② confirmed: nothing moves from refused to served.Round 2 (contract review record 6915442261, VERDICT FAIL at b959edb; delta record 6922561329, PASS at 2b9293e with S2 and N3 open). M1, S1, N1 and N2 are addressed below and closed by 6922561329. S2 is fixed at 5e2b663 (below). N3 is this body. The earlier body called
protocol-meta-layered-reads.ts"area-approved" and the new spec entry "seat-approved". No record of either approval is on #33210 or this thread, so both attributions are withdrawn. Both files are declared here as extensions of the claim's file surface: one call site in the layered read, and the ADR-0087 entry the (c) move needs.Round 3 (L1-b 6925025713, REWORK R1 to R3; delta record 6931462446, PASS at 4542737 with S3, N5 and N6 open). R1 and R2 (body half) are this body; R3 is
6f4fdf19(the RestServer[#33210]refusals pinned by[status, code]). S3 and N5 are891338265: the changeset's last "Not moved" sentence said the package-less save beside two holders still edits the row; measured on the bare-save harness, that save is refused409 RESOURCE_CONFLICTnaming E and F and writes nothing, before and after this change, so the note now says so and cites #34348 only for its own shape. The S2 pin now reads the shared member?member=en-US. N6 is this body.origin/mainmerged at3bbce494e(merge only, no conflict).维护者速读
?package=的元数据按名读取有两处改为拒绝/404。(a) 同名项只有两个包的存储行加一条无包行、且没有包在代码中发布时,普通读取、/published与执行读取一律 409 点名两个包(与/layers一致),不再按保存顺序挑一行;(c) 基础包只以存储行持有某名、依赖包在另一非规范成员(如fr-FR)加了一行时,不带包的读取在该成员上答 404,与基础包在代码中发布时一致;多个依赖包各加一个成员时同样成立。two-row-holders-bare-read-refused的reason文字。第二轮按合同复审 6915442261 修 M1(两个依赖包时第一轮仍按 200 返回)与 S1(规范成员镜像不再被挪动),并按 6922561329 修 S2(依赖包同时存了基础包的成员时,按注册表规则仍算追加)。?package=不变,写入不变,不点名成员的读取(规范成员与/published)不变。首方应用无此形态(计数 0)。回滚即还原本 PR。packages/metadata-protocol/src/protocol-meta-item-face.ts的rowHeldBaseAddressOf(每个包按自己的依赖闭包判定是否为追加;只对点名的非规范成员生效),以及servedRowHolderOf/storedRowHoldersRefusal的无包行分支。pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/domains/meta-disabled-holder-served-stack.test.ts -t "M1 two dependents|S1|S2",预期 10 个用例全部通过(两个依赖包 4 个、共享成员 4 个、规范成员镜像 2 个)。What changes
packages/metadata-protocol/src/protocol-meta-item-face.tsstoredRowHoldersRefusal(the no-disabled arm of the item face's served-holder judgment) refuses naming the holders when a package-less row sits beside two or more of them, as/layersdoes. Beside one holder or none, the package-less row still leaves the read as it was (CONTROL).servedRowHolderOfreads the rows before honouring the registry's environment item on the item face. After a reboot that item is the bare slot's entry, the row hydrated last, so it was the package-less row whenever that row was saved last. With rows bound to two or more packages beside it, it is judged with them. Beside a disabled holder the read is left as it was. (N2) Its docblock now says so.rowHeldBaseAddressOf. The read naming no package, at a named non-canonical bundle member that only dependents' additions hold over a base holding the name only as stored rows, takes the base's address, as it does when the base ships the name. (M1) Each row-holding package is judged against its own declared dependency closure, as the registry'sisBundleAdditionjudges it. A package is an addition when some other row holder is in its closure and it is not in that holder's. The base is the one row holder that is no addition. So a second dependent (D1fr-FR, D2de-DEover A'sen-US) leaves A the base at both members, in either registration order. At b959edb the rule was "exactly one row holder without a row at the member", which found A and D2 atfr-FRand served D1's row. (S1) The arm moves only a named member other than the canonical one; the canonical-member mirror is left as it was (below). (S2) No member clashes on this arm: the registry counts a clash only at a member shipped in code (codeMembersOf), and the arm runs only for a name no package ships. So a dependent that also stores a member the base stores (D'sen-USandfr-FRover A'sen-US) stays an addition. At 2b9293e any shared member was a clash, which gave two bases and served D'sfr-FR(200).packages/metadata-protocol/src/protocol-meta-layered-reads.ts: one call torowHeldBaseAddressOfbesidedeclaredMemberOverrideAddressOf, so/layersagrees with the plain read.packages/spec/src/migrations/entries/semantic/18.two-row-holders-bare-read-refused.ts(d): only thereasontext changes.packages/spec/src/migrations/entries/semantic/18.row-held-base-addition-bare-read-at-base.ts: the ADR-0087 semantic entry for (c). Round 2: thesurfaceandacceptanceCriteriasay "named member other than the canonical one" and "one or more dependents", and the surface says the read naming no member and/publisheddo not move. (N1) Thereasonno longer attributes "a bundle addition holds no name" to ADR-0150 D3; the header comment cites the rule's source (thepackageScopedHoldersOfdocblock, epic child R2)..changeset/33210-packageless-row-two-holders.md:patchon@objectstack/metadata-protocoland@objectstack/spec. Its second bullet andSkills-docs:sentence now say what the code does (M1, S1).FROM → TO (every moved answer)
main)/published, execution readRESOURCE_CONFLICT,details.candidates= E, F/layersen-USrow, dependent D'sfr-FRrow, no shipper/layers, execution read at?member=fr-FRRESOURCE_NOT_FOUNDde-DErow (M1)fr-FRand atde-DEen-USbeside itsfr-FR(S2)fr-FRen-US(CONTROL)fr-FRrow, D's canonicalen-USrow?member=en-US,/published,/layers, execution read?package=E/?package=F/?package=D&member=fr-FRS1, which option and why. The arm is guarded to a named non-canonical member rather than pinned beside a shipped CONTROL. Measured on a booted kernel: with A shipping only
fr-FRand D storing the canonicalen-US, the read naming no member serves A'sfr-FR, and/publishedand/layersmove across a reboot (200 D's row, then 404). There is no single shipped answer to align the row-held cell with. Unguarded (b959edb), the row-held cell answered 404 before a reboot and A'sfr-FRafter it. Guarded, it serves D's row on every door in both save orders, before and after a reboot, as onmain. The shipped cell's own movement is reported to the seat as a separate finding, not fixed here.Tests
packages/rest/src/meta-disabled-package-doors.test.ts: describe[#33210], all 6 save orders of the three rows on every door plus each exact address, and a one-holder CONTROL in both save orders.packages/runtime/src/domains/meta-disabled-holder-served-stack.test.ts:fr-FR, D2de-DE) registered and saved A, D1, D2 and D2, D1, A, row-held and shipped (CONTROL), before and after a reboot. Each member answers 404 on the plain read,/layersand the execution read, and is served at its own address. The base'sen-USstays the base's.en-USandfr-FRover A'sen-US, registered and saved A, D and D, A, row-held and shipped (CONTROL), before and after a reboot.fr-FRanswers 404 on the plain read,/layersand the execution read, and?package=Dserves it. (N5) The shared member?member=en-USnaming no package is not moved: the shipped base serves its own row (200), and over a row-held base A's and D's rows of it are refused409 RESOURCE_CONFLICTnaming both.fr-FRstays the base's (CONTROL).Acceptance notes
/publishedserves the package-less row, and/layersrefuses naming the disabled package. This was measured, and the disabled arm is unchanged frommain./publishedand/layersmove across a reboot.409 RESOURCE_CONFLICTnaming E and F and writes nothing, on both transports and in both save orders, measured before this change (where the plain read served a row by save order) and after it (where the read refuses as well). A save that edits a package-unbound row while the read refuses is another shape, two enabled packages that ship the name with no package's row stored, and is decision: a package-unbound row beside a name that only disabled packages hold, or that two enabled packages hold: the bare read refuses (404 / 409) but the bare save edits the row (200) #34348 (decision open).?member=en-USanswers differently by how the base holds the name: a shipped base's row (200), or over a row-held base409naming A and D. This change does not move it (measured before it, before a reboot, on the same harness).Verification
Final head
3bbce494e(origin/mainmerged at that commit). Each step below ran as its own call under the shared verify lock, afterpnpm install --frozen-lockfileand the closure buildpnpm --filter '@objectstack/dogfood^...' build(exit 0) at that head.Suites and typecheck at 3bbce49
meta-disabled-holder-served-stack.test.ts: 157/157. restmeta-disabled-package-doors.test.ts: 58/58.typecheckof runtime, rest, metadata-protocol and spec: exit 0 each.5e2b66314c(metadata-protocol source unchanged since):pnpm --filter @objectstack/metadata-protocol test346 files passed, 9 skipped; 22968 tests passed, 45 skipped.pnpm --filter @objectstack/spec testran at 2b9293e.Save measurement (S3) and the shared-member read (N5)
One-off probe on the existing bare-save harness (
[#32605]describe, both transports, both registration orders), not kept as a test: authored packages E and F each store a row and a package-less row is stored, in two save orders (package-less first, package-less last).45427375): bare read409 RESOURCE_CONFLICT; bare save409 RESOURCE_CONFLICTnaming both packages; the stored rows are unchanged.152cd1fa6, the package rebuilt,rowHeldBaseAddressOfproved absent fromdist/): bare read 200; bare save409 RESOURCE_CONFLICTnaming both; the stored rows are unchanged. The sources were then restored from HEAD (blob hashes matched) and the package rebuilt.?member=en-USnaming no package: shipped base 200 with the base's row; row-held base409 RESOURCE_CONFLICTnaming A and D on the plain read,/layersand the execution read, before and after a reboot. Without this change, row-held, before a reboot: the same409.Ablations (rounds 1 and 2; code unchanged since)
At 2b9293e:
[#33210]6 failed, 2 CONTROL passed; runtime[#33210] saved6 failed.At 5e2b663, over the
[#32607 M1, M2]describe (14 tests):rowHeldBaseAddressOfoff: 6 failed (M2, M1 two dependents and S2, the row-held cells); every shipped CONTROL passed.?member=fr-FRCONTROL (2), where without the per-package closure the base itself reads as an addition. Observed direction: more diagnostics than the two pins targeted.Dogfood battery and derived gates at 3bbce49
pnpm --filter @objectstack/dogfood test, lock VERDICT command-exit 0; 478 test files passed, 3 skipped; 4030 tests passed, 44 skipped.dispatch-gates --commands(change set from merge basebdd51769e, 7 paths): 93 derived; 91 exit 0; 2 NOT MEASURED, both exit 3 before reaching the gate body:check:dual-build-cjs-loads(PREREQUISITE NOT MET, it needs a fullpnpm build; only the dogfood closure was built) andcheck:type-check-debt(its own lock wait timed out behind the battery).--ranreconciliation: 93 derived, 91 run, 2 NOT-MEASURED, 0 UNRUN. CI runs both.🤖 Generated with Claude Code
https://claude.ai/code/session_01FEkQ5obaLbqgzRUR9xXfft